home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / make-3.69 / dep.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-03  |  2.0 KB  |  66 lines

  1. /* Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
  2. This file is part of GNU Make.
  3.  
  4. GNU Make is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8.  
  9. GNU Make is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with GNU Make; see the file COPYING.  If not, write to
  16. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. /* Structure representing one dependency of a file.
  19.    Each struct file's `deps' points to a chain of these,
  20.    chained through the `next'.
  21.  
  22.    Note that the first two words of this match a struct nameseq.  */
  23.  
  24. struct dep
  25.   {
  26.     struct dep *next;
  27.     char *name;
  28.     struct file *file;
  29.     int changed;
  30.   };
  31.  
  32.  
  33. /* Structure used in chains of names, for parsing and globbing.  */
  34.  
  35. struct nameseq
  36.   {
  37.     struct nameseq *next;
  38.     char *name;
  39.   };
  40.  
  41.  
  42. extern struct nameseq *multi_glob (), *parse_file_seq ();
  43. extern char *tilde_expand ();
  44.  
  45. #ifndef NO_ARCHIVES
  46. extern struct nameseq *ar_glob ();
  47. #endif
  48.  
  49. #ifndef    iAPX286
  50. #define dep_name(d) ((d)->name == 0 ? (d)->file->name : (d)->name)
  51. #else
  52. /* Buggy compiler can't hack this.  */
  53. extern char *dep_name ();
  54. #endif
  55.  
  56. extern struct dep *read_all_makefiles ();
  57.  
  58. /* Flag bits for the second argument to `read_makefile'.
  59.    These flags are saved in the `changed' field of each
  60.    `struct dep' in the chain returned by `read_all_makefiles'.  */
  61. #define RM_NO_DEFAULT_GOAL    (1 << 0) /* Do not set default goal.  */
  62. #define RM_INCLUDED        (1 << 1) /* Search makefile search path.  */
  63. #define RM_DONTCARE        (1 << 2) /* No error if it doesn't exist.  */
  64. #define RM_NO_TILDE        (1 << 3) /* Don't expand ~ in file name.  */
  65. #define RM_NOFLAG        0
  66.